package com.rickpan.dto.request;

import jakarta.validation.constraints.NotBlank;

/**
 * 重命名文件请求DTO
 */
public class RenameFileRequest {
    
    @NotBlank(message = "新文件名不能为空")
    private String newName;
    
    // 构造函数
    public RenameFileRequest() {}
    
    public RenameFileRequest(String newName) {
        this.newName = newName;
    }
    
    // Getter和Setter方法
    public String getNewName() {
        return newName;
    }
    
    public void setNewName(String newName) {
        this.newName = newName;
    }
    
    @Override
    public String toString() {
        return "RenameFileRequest{" +
                "newName='" + newName + '\'' +
                '}';
    }
}
